{template 'common/header'}
<style>
	.dag,.dagtwo,.dagthree,.dagfor{
		display:none;
	}
</style>
<ul class="nav nav-tabs">
	<li><a href="{php echo $this->createWebUrl('devices')}">设备列表</a></li>
</ul>
<div class="clearfix">
	<form action="" method="post" class="form-horizontal form" enctype="multipart/form-data" onsubmit="return formcheck()">
		<input type="hidden" name="id" value="{$info['id']}">
		<div class="panel panel-default">
			<div class="panel-heading">
				设置
			</div>
			<div class="panel-body">
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style="color:red">*</span>设备号</label>
					<div class="col-sm-9 col-xs-12">
						<input type="text"  name="name" class="form-control" value="{$info['name']}">
					</div>
				</div>
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label"><span style="color:red">*</span>距离(km)</label>
					<div class="col-sm-9 col-xs-12">
						<input type="text"  name="km" class="form-control" value="{$info['km']}">
					</div>
				</div>
				<div class="form-group">
					<label class="col-xs-12 col-sm-3 col-md-2 control-label">所属跑道</label>
					<div class="col-md-6">
						<select name="w_id" class="form-control s1 select2-hidden-accessible" tabindex="-1" aria-hidden="true">
							{loop $ways $item}
							<option value="{$item['id']}" {if $info['w_id']==$item['id']}selected="selected"{/if}>{$item['shop_name']}</option>
							{/loop}
						</select>
					</div>
				</div>
			</div>
		</div>
		<div class="form-group col-sm-12">
			<input type="submit" name="submit" value="提交" class="btn btn-primary col-lg-1">
			{if empty($info['id'])}
			<input type="hidden" name="act" value="add">
			{else}
			<input type="hidden" name="act" value="edit">
			{/if}
		</div>
	</form>

</div>

{template 'common/footer'}
